import {createApp} from 'vue';
import {createPinia} from 'pinia';

import App from './App.vue';
import router from './router';
import "./permission";

import "@/styles/index.scss";
import "@/styles/element/index.scss";

import {install} from "@icon-park/vue-next/es/all";
import "@icon-park/vue-next/styles/index.css";
import * as ElementPlusIconsVue from "@element-plus/icons-vue";

import '@/mock/index.js'

const app = createApp(App);

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component);
}
install(app, "bd");

app.use(createPinia());
app.use(router);

app.mount('#app');
